package com.itheima.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration  // 声明扫描类
@ComponentScan("com.itheima.service")  // 扫描范围
@Import({JdbcConfig.class, MybatisConfig.class})  // 导入其他配置文件  字节码文件
@PropertySource("classpath:jdbc.properties")  // 扫描 properties 文件
@EnableTransactionManagement  // 开始事务
public class SpringConfig {
}
